import React, { Component } from 'react'
import { Flex } from 'antd-mobile'
import Img from '../components/Img.js'
import { Link } from 'react-router' 

export default class ListTime extends Component {
    render() {
        return (
            <Link to="detali">
                <Flex className="sublistdata">
                    <Flex.Item className="am-flexbox-item-left">
                        <Img src={this.props.item.img}></Img>
                    </Flex.Item>
                    <Flex.Item className="am-flexbox-item-right">

                        <p>{this.props.item.title}</p>

                    </Flex.Item>
                </Flex >
            </Link>
        )
    }
}
